package com.wlzg.collectiontool.net

import com.wlzg.collectiontool.model.bean.GeneralDto
import com.wlzg.collectiontool.model.bean.LoginBean
import com.wlzg.collectiontool.model.bean.LoginRes
import io.reactivex.Observable
import retrofit2.http.Body
import retrofit2.http.GET
import retrofit2.http.POST
import retrofit2.http.Path

interface ApiService {
    @GET("/yufan/sys/randomImage/{key}")
    fun getCode(@Path("key") state: String?): Observable<GeneralDto<String>>?

    @POST("/yufan/sys/login")
    fun login(@Body loginBean: LoginBean?): Observable<GeneralDto<LoginRes>>?


}